package model.mobs;

/**
 * Modello del mob standard.
 * @author Max
 *
 */
public class Mob {

	private static final int STANDARD_MOB_INITIAL_LIVES = 1;
	private float x, y, z; 
	private float speed;
	private int lives;
	
	public Mob(float x, float y, float z) {
		this.x = x;
		this.y = y;
		this.z = z;
		
		lives = STANDARD_MOB_INITIAL_LIVES;
	}
	
	/**
	 * Metodo da invocare quando un mob viene colpito.
	 */
	public void hit() {
		lives--;
		if(lives == 0) {
			//TODO: eliminazione mob
		}
	}

	public float getX() {
		return x;
	}

	public void setX(float x) {
		this.x = x;
	}

	public float getY() {
		return y;
	}

	public void setY(float y) {
		this.y = y;
	}

	public float getZ() {
		return z;
	}

	public void setZ(float z) {
		this.z = z;
	}

	public float getSpeed() {
		return speed;
	}

	public void setSpeed(float speed) {
		this.speed = speed;
	}
	
	public void setLives(int lives) {
		this.lives = lives;
	}
	
	
}
